﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Net;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace WinKeyBoard.UcControls
{
    public partial class UcControlKey : UcComonKey
    {
        public UcControlKey()
        {
            InitializeComponent();
        }

        #region 上下左右
        private void btnUp_Click(object sender, EventArgs e)
        {
            KeyInput("{UP}");
        }

        private void btnDown_Click(object sender, EventArgs e)
        {
            KeyInput("{DOWN}");
        }

        private void btnLeft_Click(object sender, EventArgs e)
        {
            KeyInput("{LEFT}");
        }

        private void btnRight_Click(object sender, EventArgs e)
        {
            KeyInput("{RIGHT}");
        }
        #endregion

        #region 六键：Ins / Del / Home / End / PgUp / PgDn
        private void btnIns_Click(object sender, EventArgs e)
        {
            KeyInput("{INS}");//{ INSERT}或 { INS}
        }
        private void btnDel_Click(object sender, EventArgs e)
        {
            KeyInput("{DEL}");//{DELETE} 或 {DEL}
        }

        private void btnHome_Click(object sender, EventArgs e)
        {
            KeyInput("{HOME}");
        }
        private void btnEnd_Click(object sender, EventArgs e)
        {
            KeyInput("{END}");
        }

        private void btnPgUp_Click(object sender, EventArgs e)
        {
            KeyInput("{PGUP}");
        }

        private void btnPgDn_Click(object sender, EventArgs e)
        {
            KeyInput("{PGDN}");
        } 
        #endregion
    }
}
